package com.study.bean;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Author v_yangliu
 * @Date 2022/1/11 11:04
 * @Version 1.0
 **/
@Component
@Data
@Slf4j
public class User {
    private Long id;
    private String name;

    public User(){
        log.info("我初始化user对象了");
        this.name="张三";
    }
}
